package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.Travel;
import cn.wolfcode.trip.base.query.QueryObject;
import cn.wolfcode.trip.base.query.TravelQuery;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ITravelService {
    int deleteByPrimaryKey(Long id);


    Travel selectByPrimaryKey(Long id);

    List<Travel> selectAll();

    void saveOrUpdate(Travel travel);

    PageInfo getList(QueryObject qo);

    void changeState(Travel travel);

    Travel getContent(Long id);

    PageInfo selectTravelByStrategyId(QueryObject qo);

    void deleteRelation(Long id);

    void insertRelation(Long strategyId, Long travelId);

    List<Travel> selectTravelByMid();

    PageInfo getTravels(QueryObject qo);

    int getTravelCount(Long authorId);

    List<Travel> selectByKeyword(QueryObject qo);
}
